<?php


defined('WEBWI_ROOT_PATH') or die('Restricted access');

// * sicherstellen das die Datei nur einmal eingebunden worden ist!
if (defined('WEBWI_DATABASE_INCLUDED')) {
    return;
}

define('WEBWI_DATABASE_INCLUDED', 1);

class WebwiDatabase
{
	public $prefix = '';
	public $logger;
	public $allowWebChanges = true;
	
	function WebwiDatabase()
    {
        // exit('Cannot instantiate this class directly');
    }
	
	 function setLogger(&$logger)
    {
        $this->logger = &$logger;
    }
	
	function setPrefix($value)
    {
        $this->prefix = $value;
    }

	function prefix($tablename = '')
    {
        if ($tablename != '') {
            return $this->prefix . '_' . $tablename;
        } else {
            return $this->prefix;
        }
    }
}

?>